"""
from keras import utils
class Dse(utils.Sequence):
    def __init__(self,images,bat):
        self.images = images
        self.bat = bat
    def __len__(self):
        return len(self.images) // self.bat
    def __getitem__(self, item):

        image_files = self.images[item*self.bat:(item+1)*self.bat]

        images, labels = zip(*[read_image(image_file) for image_file in image_files])
        imgs = []
        for image in images:
            if FLAGS.mode == "L":
                image = np.expand_dims(image, axis=2)
            imgs.append(image)

        return np.array(imgs,dtype=np.uint8),np_utils.to_categorical(labels,classes)
"""